﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%List<Model> list = v.data("list") as List<Model>; %>

<%if (list.Count > 0){ %>
<% foreach (Model row in list) { %>
<div class="infolist" onselectstart="return false;" title="<%=row.modelname %>" <%if (bllPowerGroupService.powercheck("article", "modeledit", modelpowergroup)) { %>ondblClick="javascript:parent.onbotton('<%=row.modelname %>_{modelmanage_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ModelController().ModelEdit, row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'midedit<%=row.Id %>',self.frameElement.getAttribute('name'));"<%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="10%"><input type="checkbox" name="selectinfoid" value="<%=row.Id %>"></td>
			<td width="10%"><%=row.Id %></td>
			<td width="50%"><%=row.modelname %></td>
			<td width="10%" id="infotype">
				<table>
					<tr>
						<td><%if(row.lockin==1){ %><span class="system_ok" title="_{modelmanage_lockin_ok}"></span><%}else{ %><span class="system_no" title="_{modelmanage_lockin_no}"></span><%} %></td>
						<td><%if(row.isclass==1){ %><span class="audit_ok" title="_{open_botton_title}"></span><%}else{ %><span class="audit_no" title="_{close_botton_title}"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="20%" id="infotype">
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
						<td><a class="setedit2" onclick="javascript:parent.onbotton('<%=row.modelname %>_{modelmanage_text_attlist_title}','#{view}?loadfun=modelattlist&mid=<%=row.Id %>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'attlist<%=row.Id %>',self.frameElement.getAttribute('name'));" id="attlist<%=row.Id %>" href="#body" title="_{modelmanage_text_attlist_title}" hidefocus="true">_{viewmodeatt_botton}</a></td>
						<%if (bllPowerGroupService.powercheck("article", "modeledit", modelpowergroup)) { %>
						<td class="padding-left3"><a class="setedit" onclick="javascript:parent.onbotton('<%=row.modelname %>_{modelmanage_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ModelController().ModelEdit, row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'midedit<%=row.Id %>',self.frameElement.getAttribute('name'));" id="midedit<%=row.Id %>"href="#body" title="<%=row.modelname %>_{modelmanage_edit_title}" hidefocus="true">_{setedit_botton}</a></td>
						<%} %>
                        <%if (bllPowerGroupService.powercheck("article", "delmodel", modelpowergroup)) { %>
                        <%if(row.lockin !=1){ %>
						<td class="padding-left3"><a class="setedit" onclick="javascript:submiturl('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ModelController().ModelDel, row.Id) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),'#{load}','_{run_ok}','_{run_no}',true,'_{del_messok}','selectform','selectall','check_all');" href="#body" title="_{setdel_botton}" hidefocus="true">_{setdel_botton}</a></td>
						<%} %>
						<%} %>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
	<tr>
	    <td align="center">_{list_nothing_title}</td>
	</tr>
</table>
</div>
<%} %>